﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BI.CF.BLL;
using BI.CF.PageList;
using BI.CF.Model;
namespace BackStage.Hand
{
    /// <summary>
    /// User_Page 的摘要说明
    /// </summary>
    public class User_Page : IHttpHandler
    {
        //会员列表显示并分页搜索
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            UsersBLL bll = new UsersBLL();
            string name = context.Request["username"].ToString();
            string readname = context.Request["userreadname"].ToString();
            int pageindex = Convert.ToInt32(context.Request["pageindex"]);
            int pagesize = Convert.ToInt32(context.Request["pagesize"]);
            Pager<UserrsModel> um = bll.Show_Users(name, readname, pageindex, pagesize);
            string str = JsonHelper.JsonSerializer<Pager<UserrsModel>>(um);
            context.Response.Write(str);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}